﻿using System;
using System.Collections.Generic;
using System.Linq;
using Medianamik.Core;
using Medianamik.Service.ActiveDirectory.Type;

namespace Medianamik.Service.ActiveDirectory.Repository
{
    public class GroupAssociationsRepository : IGroupAssociationsRepository
    {
        public IMedianamikActiveDirectoryAssociationGroup Get(int id)
        {
            throw new NotImplementedException();
        }

        public IEnumerable<IMedianamikActiveDirectoryAssociationGroup> All()
        {
            return NodeManager.GetNodesByType<MedianamikActiveDirectoryAssociationGroup>(false).Cast<IMedianamikActiveDirectoryAssociationGroup>();
        }

    }

    public interface IGroupAssociationsRepository
    {
        IMedianamikActiveDirectoryAssociationGroup Get(int id);
        IEnumerable<IMedianamikActiveDirectoryAssociationGroup> All();
    }
}
